//
//  KDMMainViewController.m
//  KouDaiMaster
//
//  Created by 范智渊 on 2018/4/18.
//  Copyright © 2018年 zzgk. All rights reserved.
//

#import "KDMMainViewController.h"
@interface KDMMainViewController ()

@end

@implementation KDMMainViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    WeakSelf;
    MJRefreshNormalHeader *header = [MJRefreshNormalHeader headerWithRefreshingBlock:^{
        [weakSelf loadNewData];

    }];
    header.lastUpdatedTimeLabel.hidden = YES;
    
    [header setTitle:@"松开以获取最新数据" forState:MJRefreshStatePulling];
    
    [header setTitle:@"我要获取最新数据" forState:MJRefreshStateIdle];
    [header setTitle:@"正在加载最新数据 ..." forState:MJRefreshStateRefreshing];
    self.scrollView.mj_header = header;
    [self.scrollView.mj_header beginRefreshing];
    header.lastUpdatedTimeKey = MJRefreshHeaderLastUpdatedTimeKey;
}

- (void)loadNewData {
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
